#include "Error.h"
#include "Util.h"

bool Error::PrintError( __in int Error )
{
	if( Error == ERROR_FAILED_TO_DELETE_EHSVC_DLL )
		return Util::PrintReturn< bool >( "\t\tError, failed to delete ehsvc.dll!", false );
	else if ( Error == ERROR_FAILED_TO_DELETE_HSUPDATE_EXE )
		return Util::PrintReturn< bool >( "\t\tError, failed to delete HSUpdate.exe!", false );
	else if ( Error == ERROR_FAILED_TO_DELETE_HSHIELD_LOG )
		return Util::PrintReturn< bool >( "\t\tError, failed to delete hshield.log!", false );
	else if ( Error == ERROR_FAILED_TO_DOWNLOAD_ORIGINAL_EHSVC_DLL )
		return Util::PrintReturn< bool >( "\t\tError, failed to download original ehsvc.dll!", false );
	else if ( Error == ERROR_FAILED_TO_DOWNLOAD_ORIGINAL_HSUPDATE_EXE )
		return Util::PrintReturn< bool >( "\t\tError, failed to download original HSUpdate.exe!", false );
	else if ( Error == ERROR_FAILED_TO_OPEN_PROCESS_TOKEN )
		return Util::PrintReturn< bool >( "\t\tError, failed to open process token!", false );
	else if ( Error == ERROR_FAILED_TO_LOOKUP_PRIVILEGE_VALUE )
		return Util::PrintReturn< bool >( "\t\tError, failed to lookup privilege value!", false );
	else if ( Error == ERROR_FAILED_TO_ADJUST_TOKEN_PRIVILEGE )
		return Util::PrintReturn< bool >( "\t\tError, failed to adjust token privilege value!", false );
	else if ( Error == ERROR_FAILED_TO_CLOSE_TOKEN_HANDLE )
		return Util::PrintReturn< bool >( "\t\tError, failed to close token handle!", false );
	else
		return Util::PrintReturn< bool>( "\nAn unknown error has occured!", false );
}